﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="EditUser.aspx.cs" Inherits="CarRental.View.Account.EditUser" %>

<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
    <form id="Form1" runat="server" title="RegisterPage">
        <fieldset>
            <legend>Registration Form</legend>
            <ol>
                <li>
                    <asp:Label runat="server" AssociatedControlID="tbUserName">User name</asp:Label>
                    <asp:TextBox runat="server" ID="tbUserName" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbUserName"
                        CssClass="field-validation-error" ErrorMessage="The user name field is required." ValidationGroup="validGrp" />
                </li>
                <li>
                    <asp:Label runat="server" AssociatedControlID="tbEmail">Email address</asp:Label>
                    <asp:TextBox runat="server" ID="tbEmail" TextMode="Email" Enabled="False" />
                    <asp:Label ID="lblWarning" runat="server" Text="" ForeColor="Red"></asp:Label>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="tbEmail"
                        CssClass="field-validation-error" ErrorMessage="The email address field is required." ValidationGroup="va1" />
                </li>
                <li>
                    <asp:Label ID="lblLoginName" runat="server" AssociatedControlID="tbLoginName">Login Name</asp:Label>
                    <asp:TextBox runat="server" ID="tbLoginName" Enabled="False" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="tbLoginName"
                        CssClass="field-validation-error" ErrorMessage="The Login name field is required." ValidationGroup="va1" />
                </li>
                <li>
                    <asp:Label runat="server" AssociatedControlID="tbPassword">Password</asp:Label>
                    <asp:TextBox runat="server" ID="tbPassword" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="tbPassword"
                        CssClass="field-validation-error" ErrorMessage="The password field is required." ValidationGroup="validGrp" />
                </li>
                <li>
                    <asp:Label ID="lblAddress" runat="server" AssociatedControlID="tbAddress">Address</asp:Label>
                    <asp:TextBox runat="server" ID="tbAddress" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="tbAddress"
                        CssClass="field-validation-error" ErrorMessage="The address field is required." ValidationGroup="validGrp" />
                </li>
                <li>
                    <asp:Label ID="lblContactNo" runat="server" AssociatedControlID="tbContactNo">Contact Number</asp:Label>
                    <asp:TextBox runat="server" ID="tbContactNo" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="tbContactNo"
                        CssClass="field-validation-error" ErrorMessage="The contact number field is required." ValidationGroup="va1" />
                </li>
                <li>
                    <asp:Label ID="lblUserType" runat="server" AssociatedControlID="tbContactNo">User Type</asp:Label>
                    <asp:DropDownList ID="ddlUserType" runat="server" Width="200px" Height="25px" Enabled="False"></asp:DropDownList>
                </li>
                <li>
                    <asp:Label ID="lblStatus" runat="server" AssociatedControlID="ddlUserStatus">User Status</asp:Label>
                    <asp:DropDownList ID="ddlUserStatus" runat="server" Width="200px" Height="25px"></asp:DropDownList>
                </li>
                <li>
                    <asp:Label ID="lblRemark" runat="server" AssociatedControlID="tbRemark">Remark</asp:Label>
                    <asp:TextBox runat="server" ID="tbRemark" TextMode="MultiLine" Height="100px" Width="300px" />
                </li>
            </ol>
            <asp:Button runat="server" ID="btnEdit" Text="Edit User" ValidationGroup="validGrp" OnClick="btnEdit_Click" />
            <asp:Button ID="btnBack" runat="server" Text="Back" OnClick="btnBack_Click" />
        </fieldset>
    </form>
</asp:Content>

